﻿using MaiPlanServer.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MaiPlanServer.IServices.IEquipmentServices
{
    public interface IRepairOrderServices
    {
        public Task<IEnumerable<dv_repair>> GetJsonAsync(int PageIndex, int PageSize, string repair_code, string repair_name, string machinery_code, string machinery_name, string repair_result, string status);
        public Task<int> GetCountAsync(string repair_name);
        public Task<bool> AddAsync(dv_repair model);
        public Task<bool> UpdateAsync(dv_repair model);
        public Task<bool> DellAsync(string Id);
        public Task<bool> DellAllAsync(string[] Id);
        public Task<string> GetCodeasync();
        public Task<bool> Adds(dv_repair_line model);
        public Task<IEnumerable<dv_repair_line>> GetLine(string repair_id);
    }
}
